package com.crealth.crmserver;

import org.apache.mina.core.session.IoSession;
import org.apache.mina.filter.codec.ProtocolCodecFactory;
import org.apache.mina.filter.codec.ProtocolDecoder;
import org.apache.mina.filter.codec.ProtocolEncoder;


public class CRMServerCodecFactory implements ProtocolCodecFactory{
	private static ProtocolDecoder msgDecoder = new CRMServerDecoder();
	private static CRMServerEncoder msgEncoder = new CRMServerEncoder();
	
	@Override
	public ProtocolDecoder getDecoder(IoSession arg0) throws Exception {		
		return msgDecoder;
	}

	@Override
	public ProtocolEncoder getEncoder(IoSession arg0) throws Exception {
		return msgEncoder;
	}

}
